#Maintainer: Gaetan Bisson <bisson@archlinux.org>
#Contributor: Jan de Groot <jgc@archlinux.org>

pkgname=font-bh-ttf
pkgver=1.0.3
pkgrel=4
pkgdesc='X.org Luxi Truetype fonts'
url='https://xorg.freedesktop.org/'
license=('custom')
arch=('any')
depends=('xorg-fonts-encodings' 'xorg-fonts-alias' 'xorg-font-utils' 'fontconfig')
source=("${url}/releases/individual/font/${pkgname}-${pkgver}.tar.bz2")
sha256sums=('1b4bea63271b4db0726b5b52c97994c3313b6023510349226908090501abd25f')

build() {
	cd "${srcdir}/${pkgname}-${pkgver}"
	./configure --prefix=/usr --with-fontdir=/usr/share/fonts/TTF
	make
}

package() {
	cd "${srcdir}/${pkgname}-${pkgver}"
	make DESTDIR="${pkgdir}" install
	rm "${pkgdir}/usr/share/fonts/"*/fonts.*
	install -Dm644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/COPYING"
}
